package com.zklh.book.system.model;

import java.util.List;

/**
 * 登录系统的用户\
 *
 * @author 坐看落花
 * @version 1.0
 * @date 2021/3/20 19:18
 */
public class User {

    /**
     * 用户账号
     */
    private String account;

    /**
     * 用户密码
     */
    private String password;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 用户角色
     */
    private String role;

    /**
     * 用户年龄
     */
    private int age;

    /**
     * 用户登录凭证
     */
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    /**
     * 用户借的书
     */
    private List<Book>  borrowedBooks;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public List<Book> getBorrowedBooks() {
        return borrowedBooks;
    }

    public void setBorrowedBooks(List<Book> borrowedBooks) {
        this.borrowedBooks = borrowedBooks;
    }

    public User(String account, String password, String name, String role, int age, List<Book> borrowedBooks) {
        this.account = account;
        this.password = password;
        this.name = name;
        this.role = role;
        this.age = age;
        this.borrowedBooks = borrowedBooks;
    }

    public User() {
    }
}
